b2b_url = "http://business.arkadium.com"
demo_url = "http://demoarena.arkadium.com"
#name of get access
name_correct = "name_test_correct"
name_incorrect ="nt"
#company of get access
company_correct = "company_test_correct"
company_incorrect = "ct"
#email of get access
email_correct ="test@test.test"
#text of get access
text_correct ="Sorry, it's test!"
text_incorrect ="ti"

select_locator = "langSel"
option_text = "German "

def emails (driver, msg_txt):
    txtparam=sys.argv[1]
    fromaddr = 'Autotests B2B and Demo Arena <brutusimpuls@gmail.com>'
    toaddr = 'IgorM <igorm@arkadium.com>'
    subj = 'Autotests B2B and Demo Arena'
    #msg_txt = 'Notice:\n\n ' +  txtparam + '\n\nBye!' #
    msg = "From: %s\nTo: %s\nSubject: %s\n\n%s"  % ( fromaddr, toaddr, subj, msg_txt)

    username = 'brutusimpuls'
    password = 'Pas0194083'

    server = smtplib.SMTP('smtp.gmail.com:587')
    server.set_debuglevel(1);
    server.starttls()
    server.login(username,password)
    server.sendmail(fromaddr, toaddr, msg)
    server.quit()